package com.lcu.student.service;

import com.lcu.Result.Result;
import com.lcu.student.entity.Teacher;

import java.util.List;

public interface TeacherService {

    /**
     * 查询所有教师及编号
     * @return
     */
    Result selectTeacher();

    /**
     * 带条件的分页查询
     * @param currentPage
     * @param pageSize
     * @param teacher
     * @return
     */
    Result selectByPage (int currentPage, int pageSize, Teacher teacher);

    /**
     * 根据id删除数据
     * @param id
     * @return
     */
    Result deleteById(int id);

    /**
     * 根据ids批量删除数据
     * @param ids
     * @return
     */
    Result deleteByIds(List<Integer> ids);

    /**
     * 添加数据
     * @param teacher
     * @return
     */
    Result addTeacher(Teacher teacher);

    /**
     * 修改数据
     * @param teacher
     * @return
     */
    Result updateById(Teacher teacher);
}
